#include "LinearMath/btDefaultMotionState.h"
#ifdef __cplusplus
extern "C" {
#endif
btDefaultMotionState* bullet_NewbtDefaultMotionState(btTransform* startTrans,btTransform* centerOfMassOffset){
	btTransform const& c_arg_startTrans=(btTransform const&)(*startTrans);
	btTransform const& c_arg_centerOfMassOffset=(btTransform const&)(*centerOfMassOffset);
	btDefaultMotionState* wrap_out = new btDefaultMotionState(c_arg_startTrans,c_arg_centerOfMassOffset);
	return wrap_out;
}

btTransform* bullet_btDefaultMotionState_GetFieldOfM_centerOfMassOffset(btDefaultMotionState* c_this){
	return (btTransform*)(&c_this->m_centerOfMassOffset);
}

btTransform* bullet_btDefaultMotionState_GetFieldOfM_graphicsWorldTrans(btDefaultMotionState* c_this){
	return (btTransform*)(&c_this->m_graphicsWorldTrans);
}

btTransform* bullet_btDefaultMotionState_GetFieldOfM_startWorldTrans(btDefaultMotionState* c_this){
	return (btTransform*)(&c_this->m_startWorldTrans);
}

void** bullet_btDefaultMotionState_GetFieldOfM_userPointer(btDefaultMotionState* c_this){
	return (void**)(&c_this->m_userPointer);
}

#ifdef __cplusplus
}
#endif
